/* 废弃：mac os 不生效 */

const exec = require('child_process').exec;
const os = require('os')
const mySh = exec(os.type() === 'Windows_NT' ? 'gitpush.sh' : './gitpush.sh')

mySh.stdout.on('data', data => {
    console.log('输出：', data)
})

mySh.stderr.on('data', data=>{
    console.log('异常：', data)
})